<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>公共模板</title>
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/main.css}">
</head>
<body>


    <div class="layui-header" th:fragment="commonHeader">
        <div class="layui-logo">imwenwen后台管理</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item ">
                <a ><img th:src="${session.admin.getHead()}" class="layui-nav-img">管理员:<span th:text="${session.admin.getUsername()}"></span></a>
                <dl class="layui-nav-child">
                    <dd><a th:href="@{/sys/adminLookInfo}">查看个人资料</a></dd>
                    <dd><a th:href="@{/sys/adminpassword}">修改密码</a></dd>
                    <hr>
                    <a th:href="@{/sys/adminLogout}">退出</a>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black" th:fragment="sidebar">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item ">
                    <a> <i class="layui-icon layui-icon-user"></i> &nbsp;用户</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/sys/userList}">网站用户</a></dd>
                        <dd><a th:href="@{/sys/adminList}">后台管理员</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a><i class="layui-icon layui-icon-engine"></i> &nbsp;新闻</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/sys/focusColum}">焦点栏目管理</a></dd>
                        <dd><a th:href="@{/sys/focusnewsColum}">要闻栏目管理</a></dd>
                        <dd><a th:href="@{/sys/sportColum}">体育栏目管理</a></dd>
                        <dd><a th:href="@{/sys/lakerColum}">湖人栏目管理</a></dd>
                        <dd><a th:href="@{/sys/bbColum}">篮球栏目管理</a></dd>
                        <dd><a th:href="@{/sys/fbColum}">足球栏目管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a><i class="layui-icon layui-icon-template"></i>&nbsp;页面</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/sys/404}">404</a></dd>
                        <dd><a th:href="@{/sys/errors}">error</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a><i class="layui-icon layui-icon-set"></i>&nbsp;设置</a>
                    <dl class="layui-nav-child">
                        <dd class="layui-nav-iteme">
                            <a>我的设置</a>
                            <dl class="layui-nav-child">
                                <dd><a th:href="@{/sys/admininfo}">修改个人资料</a></dd>
                                <dd><a th:href="@{/sys/adminpassword}">修改密码</a></dd>
                            </dl>
                        </dd>

                    </dl>
                </li>
                <li class="layui-nav-item"><a th:href="@{/sys/about}"><i class="layui-icon layui-icon-auz"></i>&nbsp;关于</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-footer" th:fragment="commonFooter">
        <!-- 底部固定区域 -->
        © 2020 imwenwen
    </div>


</body>
</html>